home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsPIDNSService.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  116 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsPIDNSService.idl
  3.  */
  4.  
  5. #ifndef __gen_nsPIDNSService_h__
  6. #define __gen_nsPIDNSService_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDNSService_h__
  10. #include "nsIDNSService.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsPIDNSService */
  19. #define NS_PIDNSSERVICE_IID_STR "a26c5b45-7707-4412-bbc1-2462b890848d"
  20.  
  21. #define NS_PIDNSSERVICE_IID \
  22.   {0xa26c5b45, 0x7707, 0x4412, \
  23.     { 0xbb, 0xc1, 0x24, 0x62, 0xb8, 0x90, 0x84, 0x8d }}
  24.  
  25. /**
  26.  * This is a private interface used by the internals of the networking library.
  27.  * It will never be frozen.  Do not use it in external code.
  28.  */
  29. class NS_NO_VTABLE nsPIDNSService : public nsIDNSService {
  30.  public: 
  31.  
  32.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_PIDNSSERVICE_IID)
  33.  
  34.   /**
  35.      * called to initialize the DNS service.
  36.      */
  37.   /* void init (); */
  38.   NS_IMETHOD Init(void) = 0;
  39.  
  40.   /**
  41.      * called to shutdown the DNS service.  any pending asynchronous
  42.      * requests will be canceled, and the local cache of DNS records
  43.      * will be cleared.  NOTE: the operating system may still have
  44.      * its own cache of DNS records, which would be unaffected by
  45.      * this method.
  46.      */
  47.   /* void shutdown (); */
  48.   NS_IMETHOD Shutdown(void) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSPIDNSSERVICE \
  54.   NS_IMETHOD Init(void); \
  55.   NS_IMETHOD Shutdown(void); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSPIDNSSERVICE(_to) \
  59.   NS_IMETHOD Init(void) { return _to Init(); } \
  60.   NS_IMETHOD Shutdown(void) { return _to Shutdown(); } 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSPIDNSSERVICE(_to) \
  64.   NS_IMETHOD Init(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
  65.   NS_IMETHOD Shutdown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Shutdown(); } 
  66.  
  67. #if 0
  68. /* Use the code below as a template for the implementation class for this interface. */
  69.  
  70. /* Header file */
  71. class _MYCLASS_ : public nsPIDNSService
  72. {
  73. public:
  74.   NS_DECL_ISUPPORTS
  75.   NS_DECL_NSPIDNSSERVICE
  76.  
  77.   _MYCLASS_();
  78.  
  79. private:
  80.   ~_MYCLASS_();
  81.  
  82. protected:
  83.   /* additional members */
  84. };
  85.  
  86. /* Implementation file */
  87. NS_IMPL_ISUPPORTS1(_MYCLASS_, nsPIDNSService)
  88.  
  89. _MYCLASS_::_MYCLASS_()
  90. {
  91.   /* member initializers and constructor code */
  92. }
  93.  
  94. _MYCLASS_::~_MYCLASS_()
  95. {
  96.   /* destructor code */
  97. }
  98.  
  99. /* void init (); */
  100. NS_IMETHODIMP _MYCLASS_::Init()
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* void shutdown (); */
  106. NS_IMETHODIMP _MYCLASS_::Shutdown()
  107. {
  108.     return NS_ERROR_NOT_IMPLEMENTED;
  109. }
  110.  
  111. /* End of implementation class template. */
  112. #endif
  113.  
  114.  
  115. #endif /* __gen_nsPIDNSService_h__ */
  116.